package com.itools.core.controller;


import com.itools.core.base.CommonResult;
import com.itools.core.log.Logable;
import com.itools.core.result.FmsRecordResult;
import com.itools.core.result.FmsDetailRecordResult;
import com.itools.core.service.FmsRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @description:
 * @author: XUCHANG
 * @create: 2021-04-01 11:26
 */
@RestController
@Api("文件记录信息接口")
public class FmsFileRecordController {

	@Autowired
	private FmsRecordService fmsRecordService;
	
	/**
	 * 获取文件记录信息 (内部调用)
	 * @return
	 * @throws IOException
	 */
	@RequestMapping(value = "/get/record", method = RequestMethod.GET)
	@Logable
	@ApiOperation(value = "获取文件记录信息", notes = "获取文件记录信息", httpMethod = "GET")
	public CommonResult<FmsDetailRecordResult> queryFssRecordByUniqueId(@RequestParam("uniqueId") String uniqueId) {
		return fmsRecordService.queryFssRecordByUniqueId(uniqueId);
	}
}
